<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.application.component.view');

class EcommerceViewCategory extends JView
{
	function display($tpl = null)
	{
		global $option, $mainframe;
		
		$model = &$this->getModel();	
		$children = $model->getChildren();
		$info = $model->getInfo();
	
		$this->assignRef('children', $children);
		$this->assignRef('info', $info);

	    $document = JFactory::getDocument();
		$document->setTitle($info->name);
		
		parent::display($tpl);
	}
}
?>